home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / kernel / dev / devTypes.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-19  |  3.3 KB  |  125 lines

  1. /*
  2.  * devTypes.h --
  3.  *
  4.  *    This file declares the major device types used in Sprite.
  5.  *
  6.  * Copyright 1988 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  *
  15.  * $Header: /cdrom/src/kernel/Cvsroot/kernel/dev/devTypes.h,v 9.15 92/10/26 13:41:04 mgbaker Exp $ SPRITE (Berkeley)
  16.  */
  17.  
  18. #ifndef _DEVTYPES
  19. #define _DEVTYPES
  20.  
  21. /* constants */
  22.  
  23. /*
  24.  * Device types:
  25.  *
  26.  *    DEV_TERM        Terminal devices, like the console
  27.  *    DEV_SYSLOG        The system log device
  28.  *    DEV_MEMORY        Null device and kernel memory area.
  29.  *    DEV_NET            Raw ethernet device - unit number is protocol.
  30.  *    DEV_KEYBOARD        Keyboard
  31.  *    DEV_SCSI_DISK        Disk on the SCSI bus
  32.  *    DEV_SCSI_TAPE        Tape drive on the SCSI bus
  33.  *    DEV_XYLOGICS        Xylogics 450 controller
  34.  *    DEV_SCSI_HBA        Raw SCSI HBA device driver
  35.  *    DEV_RAID        Raw interface to disk array
  36.  *    DEV_DEBUG        For debugging disk arrays?
  37.  *    DEV_MOUSE        Mouse and keystroke info for window systems
  38.  *    DEV_AUDIO        Audio device
  39.  *    DEV_SCSI_ROBOT        Tape robot on the SCSI bus.
  40.  *      DEV_SMEM                Kernel memory image
  41.  *    DEV_CLIENT_STATE    Device for tracking clients of server.
  42.  *    DEV_STDFB        "Standard" frame buffer. The idea is that this
  43.  *                device behaves the same on machine types,
  44.  *                unlike the mouse or graphics device.
  45.  *
  46.  *
  47.  * NOTE: These numbers correspond to the major numbers for the devices
  48.  * in /dev. Do not change them unless you redo makeDevice for all the devices
  49.  * in /dev.
  50.  *
  51.  */
  52.  
  53. #define    DEV_TERM        0
  54. #define    DEV_SYSLOG        1
  55. #define    DEV_SCSI_WORM        2
  56. #define    DEV_PLACEHOLDER_2    3
  57. #define    DEV_SCSI_DISK        4
  58. #define    DEV_SCSI_TAPE        5
  59. #define    DEV_MEMORY        6
  60. #define    DEV_XYLOGICS        7
  61. #define    DEV_NET            8
  62. #define    DEV_SCSI_HBA        9
  63. #define    DEV_RAID        10
  64. #define    DEV_DEBUG        11
  65. /* Number 12 taken below. */
  66. #define DEV_PLACEHOLDER_3    13      /* for ds3100 unused graphics device */
  67. #define DEV_SMEM                14
  68. /* #define DEV_ZDC_DISK        14    Only on sequent symmetry */
  69. #define DEV_AUDIO        15
  70. #define DEV_VMELINK        16
  71. #define DEV_STDFB         17
  72. #define DEV_ATC            18      /* used by sun4 only */
  73. #define DEV_PLACEHOLDER_4       18      /* used by decstations */
  74. #define DEV_PLACEHOLDER_5    19
  75. #define DEV_SCSI_ROBOT        20
  76. #define    DEV_XBUS        21
  77. #define    DEV_CLIENT_STATE    22
  78.  
  79.  
  80. #if (!defined(ds3100)) && (!defined(ds5000))
  81. #define DEV_MOUSE        12
  82. #define DEV_GRAPHICS        13
  83. #else
  84. #define    DEV_CONSOLE        0
  85. #define DEV_GRAPHICS        9
  86. /*
  87.  * Unit numbers for the graphics device.
  88.  */
  89. #define DEV_MOUSE        0
  90. #define DEV_XCONS        1
  91.  
  92. /*
  93.  * SCSI HBA's attached to the system.
  94.  */
  95. #define DEV_SII_HBA    0
  96. #endif 
  97.  
  98.  
  99.  
  100.  
  101. /*
  102.  * The following device types are defined for SPUR as of 7/15/89.  They
  103.  * should be changed so that don't overlap the device types above.
  104.  * Also, why do two different devices have the same number?
  105.  */
  106.  
  107. #define DEV_CC            9
  108. #define DEV_PCC            9
  109.  
  110. /*
  111.  * SCSI HBA's attached to the system.
  112.  */
  113.  
  114. #define    DEV_SCSI3_HBA    0
  115. #define    DEV_SCSI0_HBA    1
  116. #define    DEV_JAGUAR_HBA  2
  117.  
  118. /*
  119.  * The following exists only on the sparc station.
  120.  */
  121. #define DEV_SCSIC90_HBA    0
  122.  
  123. #endif /* _DEVTYPES */
  124.  
  125.